package com.my.xq.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.common.tree.Tree;
import com.sskj.core.entity.BaseEntity;

/***
 * 每单元的户数及业委会成员数量
 * 
 * @author chenliang
 *
 */
@SuppressWarnings("rawtypes")
@Entity
@Table(name = "xq_court_ywh_settings")
public class CourtYwhSettings extends BaseEntity implements Tree {

	private static final long serialVersionUID = 601633670748433229L;

	/** 小区id */
	@Column(length = 40, nullable = false)
	private String courtId;

	@Column(length = 36)
	private String parentId;

	/** 楼栋或单元（B、U） */
	@Column(length = 1, nullable = false)
	private String type;

	/** 楼栋号 */
	@Column
	private String building;

	/** 单元号 */
	@Column
	private String unit;

	/** 总户数 */
	@Column
	private int totalDoors;

	/** 成员个数 */
	@Column
	private int countMember = 1;

	public String getCourtId() {
		return courtId;
	}

	public void setCourtId(String courtId) {
		this.courtId = courtId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public int getTotalDoors() {
		return totalDoors;
	}

	public void setTotalDoors(int totalDoors) {
		this.totalDoors = totalDoors;
	}

	public int getCountMember() {
		return countMember;
	}

	public void setCountMember(int countMember) {
		this.countMember = countMember;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public Object getData() {
		return null;
	}

	@Override
	public String getParentId() {
		return parentId;
	}

	@Override
	public Integer getSort() {
		return null;
	}

}
